// 本地存储
// 添加本地存储
export function storageSet(storage: Storage, key: string, value: string) {
	storage.setItem(key, JSON.stringify(value))
}
// 读取本地存储
export function storageGet(storage: Storage, key: string) {
	return JSON.parse(storage.getItem(key) as string)
}
// 删除本地存储
export function storageRemove(storage: Storage, key: string) {
	storage.removeItem(key)
}
// 删除所有本地存储
export function storageRemoveAll(storage: Storage) {
	storage.clear()
}
